package com.njtoyo.taxi.admin.rest.wrapper.platform.role;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.mapper.secondary.entity.Role;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Objects;

@Data
@ApiModel(value = "角色筛选对象", description = "角色筛选对象")
@EqualsAndHashCode(callSuper = true)
public class RoleListWrapper extends Page<Role> {

    public RoleListWrapper(Long current, Long size) {
        super(Objects.isNull(current) ? 1 : current, Objects.isNull(size) ? 15 : size);
    }

    @ApiModelProperty(value = "角色名称")
    private String title;

}
